package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.THouseholdMapper;
import com.ruoyi.system.domain.THousehold;
import com.ruoyi.system.service.ITHouseholdService;

/**
 * 住户管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-10-17
 */
@Service
public class THouseholdServiceImpl implements ITHouseholdService 
{
    @Autowired
    private THouseholdMapper tHouseholdMapper;

    /**
     * 查询住户管理
     * 
     * @param id 住户管理主键
     * @return 住户管理
     */
    @Override
    public THousehold selectTHouseholdById(Long id)
    {
        return tHouseholdMapper.selectTHouseholdById(id);
    }

    /**
     * 查询住户管理列表
     * 
     * @param tHousehold 住户管理
     * @return 住户管理
     */
    @Override
    public List<THousehold> selectTHouseholdList(THousehold tHousehold)
    {
        return tHouseholdMapper.selectTHouseholdList(tHousehold);
    }

    /**
     * 新增住户管理
     * 
     * @param tHousehold 住户管理
     * @return 结果
     */
    @Override
    public int insertTHousehold(THousehold tHousehold)
    {
        return tHouseholdMapper.insertTHousehold(tHousehold);
    }

    /**
     * 修改住户管理
     * 
     * @param tHousehold 住户管理
     * @return 结果
     */
    @Override
    public int updateTHousehold(THousehold tHousehold)
    {
        return tHouseholdMapper.updateTHousehold(tHousehold);
    }

    /**
     * 批量删除住户管理
     * 
     * @param ids 需要删除的住户管理主键
     * @return 结果
     */
    @Override
    public int deleteTHouseholdByIds(Long[] ids)
    {
        return tHouseholdMapper.deleteTHouseholdByIds(ids);
    }

    /**
     * 删除住户管理信息
     * 
     * @param id 住户管理主键
     * @return 结果
     */
    @Override
    public int deleteTHouseholdById(Long id)
    {
        return tHouseholdMapper.deleteTHouseholdById(id);
    }
}
